<div class="cl-bo"></div>
<div class="footer">
    <div class="layout">
    	<ul id="footer_menu">
       		 <tpshop sql="select * from `__PREFIX__article_cat` where parent_id = 6 and show_in_nav=1  order by sort_order asc" key="k2" item='v2'>
                <li><span>{$v2[$catnamefooter]}</span>
                
                <?php 
                    $count_art = article_cat_num($v2[cat_id]);
                ?>
                    <if condition="$count_art neq ''">
                        <if condition="$v2[cat_id] eq '7'">    
                            <tpshop sql="select * from `__PREFIX__article_cat` where parent_id = $v2[cat_id] and show_in_nav=1  order by sort_order asc" key="k3" item='v3'>
                                <a href="{:U('Home/Article/detail',array('cat_id'=>$v3[cat_id],'act'=>'about'))}#{$v3[keywords]}">{$v3[$catnamefooter]}</a>
                            </tpshop>
                        <else/>
                            <tpshop sql="select * from `__PREFIX__article_cat` where parent_id = $v2[cat_id] and show_in_nav=1  order by sort_order asc" key="k3" item='v3'>
                                <a href="{:U('Home/Article/articleList',array('cat_id'=>$v3[cat_id]))}">{$v3[$catnamefooter]}</a>
                            </tpshop>
                        </if>
                    <else/>
                        <tpshop sql="select * from `__PREFIX__article` where cat_id = $v2[cat_id] and is_open=1  order by sort asc,article_id desc" key="k3" item='v3'>
                            <a href="<if condition="$v3[link] neq ''">{$v3[link]}<else/>{:U('Home/Article/detail',array('article_id'=>$v3[article_id]))}</if>">
                            <if condition="$v3[thumb] neq ''"><img src="{$v3[thumb]}" width="23" /></if>{$v3[$title]}</a>
                        </tpshop>        
                    </if>
                    
                </li>
            </tpshop>
            

        	
        	<li class="fr">
            	<span>Casual but Elegant</span>
            	<div class="ewm_footer" >
                	<img src="__STATIC__/images/n_f_ewm.jpg" />
                </div>
            </li>
            <div style=" clear:both;"></div>
        </ul>
            <div style=" clear:both;"></div>
       
        <p>© 2009-2017 mattmatt. All Rights Reserved.  <img src="__STATIC__/images/n_f_gs.jpg" /><a href="http://wljg.gdgs.gov.cn">广东工商</a>   <img src="__STATIC__/images/n_f_gj.jpg" /><a href="http://www.miibeian.gov.cn/" target="_blank">粤ICP备17139437号</a></p>
    </div>
 </div>
 
